﻿@model Enity101.Models.IndexViewModel
@{
    ViewBag.Title = "Home Page";
}

<h1>@Model.PageName</h1>

@foreach (var p in Model.Posts)
{
    <div>
        <h3>@p.Title</h3>
        <p>@p.Content</p>
        <p class="pull-right">
            @Html.ActionLink("Edit", "Update", new { Id = p.PostId })
            <br />
            @Html.ActionLink("Delete", "Delete", new { Id = p.PostId })
        </p> 
        
    </div>
}
